package cn.cscamp.middleware.loadbalancer.exception;

public class LoadbalancerException extends RuntimeException {

    private final String message;

    public LoadbalancerException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public LoadbalancerException(String message) {
        super(message);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return super.fillInStackTrace();
    }
}
